import http from "../index"

export function UserMsgList(param={}){
    return http({
        url: '/usermsg/list',
        method: 'post',
        data: param,
        params: param
    })
}


//查询出所有分类数据
export function UserMsgSaveOrUpdata(param={}){
    return http({
        url: '/usermsg/saveorupdata',
        method: 'post',
        data: param
    })
}

export function UserMsgDetele(param={}){
    return http({
        url: '/usermsg/delete',
        method: 'post',
        data: param,
        params: param
    })
}

export function UserMsgAudit(param={}){
    return http({
        url: '/usermsg/audit',
        method: 'post',
        data: param,
    })
}

export function UserMsgimportExcel(){
    return http({
        url: '/usermsg/importexcel',
        method: 'get',
        responseType: 'blob'
    })
}


export function UserMsgGetByid(param={}){
    return http({
        url: `/usermsg/getbyid/${param}`,
        method: 'get',
    })
}

export function UserMsgLogin(param={}){
    return http({
        url: '/usermsg/login',
        method: 'post',
        data: param,
    })
}

